package net.lzzy.chapter506;

public class Goodbye implements Runnable {
    private String bye;
    private int num;

    public Goodbye() {
    }

    public Goodbye(String bye, int num) {
        this.bye = bye;
        this.num = num;
    }

    public String getBye() {
        return bye;
    }

    public void setBye(String bye) {
        this.bye = bye;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public void run() {
        for (int i = 0; i <num ; i++) {
            System.out.println(bye+" ");
        }
    }
}
